package me.notelife.svnmonitor.dao;

import java.util.List;

import me.notelife.svnmonitor.domain.VCSLogEntry;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface VCSLogDAO
{
    String All_VCS_Log_Entries = "select * from review_record";

    String CREATE_VCS_LOG_ENTRY =
        "insert into review_record (submitter, revision, changes, timestamp, comments) values (#{submitter},#{revision},#{changes}, #{timestamp}, #{comments})";

    @Select( All_VCS_Log_Entries )
    public List<VCSLogEntry> getAllVCSLogEntries() throws Exception;

    @Insert( CREATE_VCS_LOG_ENTRY )
    public Integer createVCSLogEntry( VCSLogEntry entry ) throws Exception;

    public VCSLogEntry getVCSLogEntry( Long id ) throws Exception;

}
